package com.lyf.alg.review842.matrix2016;

/**
 * @AUTHOR LYF
 * @DATE 2022/2/23
 * @VERSION 1.0
 * @DESC
 * 16年:定义MyMatrix,实现构造函数，矩阵加法乘法转置
 *
 */
public class MyMatrix {
    private double [][]a;
    public MyMatrix(double[][]a){}
    // 矩阵加法
    public MyMatrix plus(MyMatrix B){
        MyMatrix myMatrix = new MyMatrix(B.a);
        return myMatrix;
    }
    // 矩阵乘法
    public MyMatrix times(MyMatrix B){
        return new MyMatrix(B.a);
    }
    //
    public MyMatrix transpose(){
        return new MyMatrix(a);
    }
    public void print(int w,int d){

    }

}
